home *** CD-ROM | disk | FTP | other *** search
- Path: odie.et.fnt.hvu.nl!ico
- From: ico@odie.et.fnt.hvu.nl (Ico Doornekamp)
- Newsgroups: comp.lang.c
- Subject: Re: interpreters
- Date: 19 Jan 1996 14:52:09 GMT
- Organization: Hogeschool van Utrecht, the Netherlands
- Message-ID: <4dob6p$eb1@elektron.et.tudelft.nl>
- References: <4d21k2$gkh@news-f.iadfw.net>
- NNTP-Posting-Host: odie.et.fnt.hvu.nl
- X-Newsreader: TIN [version 1.2 PL2]
-
- dye (dye@airmail.net) wrote:
- : I am trying to create a script type language for a project at work and need
- : a basis for it. I need something that can perform the basic math operations
- : and perform "if" constructs. It occurs to me that C source for a BASIC
- : interpreter would be a good start. Also anything similar would be helpful.
- : If anyone has any ideas or pointers PLEASE mail me. Thanks mucho
-
- : Travis Dye
-
- There is a tool available for creating interpreters/compiles called Yacc,
- or Bison for the GNU version. All you do is define the grammar of your
- language and which tokens do what, feed it to Yacc, which creates a C-source
- for the interpreter. Take a look at ftp: prep.ai.mit.edu for Bison and documentation. There are also DOS-ports available.
-